package com.exp.sys.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.constraints.NotBlank;

import com.exp.base.entity.BaseEntity;

@Entity
@Table(name="sys_role")
public class Role  extends BaseEntity{
    @NotBlank
    private String name="";
    private String departmentId="";//空为全局角色，不空为岗位角色
    
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDepartmentId() {
		return departmentId;
	}
	public void setDepartmentId(String departmentId) {
		this.departmentId = departmentId;
	}
	@Override
	public String toString() {
		return "Role [name=" + name + ", departmentId=" + departmentId + "]";
	}
    
    
}
